<?php
$user = false;$pass = false;

$user = '1';$pass = '1';



function  authenticate()  {
      Header( "WWW-authenticate: basic  realm=\"Authentication  Required\"");
      Header( "HTTP/1.0  401  Unauthorized");
      exit(1);
  }

    if($_SERVER['PHP_AUTH_USER'] == $user && $_SERVER['PHP_AUTH_PW'] == $pass){
    
    }else{
        authenticate();
    }

?>